package com.yitiao.designmodel.behave.strategy;

/**
 * 入口类，对外暴露
 */
public class RejectService {
    private RejectStrategy rejectStrategy;

    public RejectService(RejectStrategy rejectStrategy) {
        this.rejectStrategy = rejectStrategy;
    }

    public void rejectWork(){
        System.out.println("今晚加班吧！");
        rejectStrategy.reject();
    }
}
